
# 要求的Cmake最低版本
CMAKE_MINIMUM_REQUIRED( VERSION 2.8)
 
# 工程名称
PROJECT(main)
 
# 设置编译器编译模式：
set( CMAKE_BUILD_TYPE "Debug" )


# 头文件
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/../../media-server)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/../../common)
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)

# 生成共享库
add_library(change_picture SHARED decode.c encode.c filter.c change_picture.c)

target_link_libraries(change_picture liblibavcodec.a)
target_link_libraries(change_picture liblibavdevice.a)
target_link_libraries(change_picture liblibavfilter.a)
target_link_libraries(change_picture liblibavformat.a)
target_link_libraries(change_picture liblibavutil.a)
target_link_libraries(change_picture liblibpostproc.a)
target_link_libraries(change_picture liblibswresample.a)
target_link_libraries(change_picture liblibswscale.a)


